package com.tech.zhidengxian.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tech.zhidengxian.model.dataobject.ReceiverAddressDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReceiverAddressMapper extends BaseMapper<ReceiverAddressDO> {
    default List<ReceiverAddressDO> queryAddressListByUid(Long uid){
        LambdaQueryWrapper<ReceiverAddressDO> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(ReceiverAddressDO::getUid, uid);
        return selectList(wrapper);
    }
}
